using System;using System.Collections.Generic;using System.Text;using MyWeb.Data;namespace MyWeb.Business{	public class PermissionService	{		private static PermissionDAL db = new PermissionDAL();		#region[Permission_GetById]		public static List<Data.Permission> Permission_GetById(string Id)		{			return db.Permission_GetById(Id);		}		#endregion		#region[Permission_GetByTop]		public static List<Data.Permission> Permission_GetByTop(string Top, string Where, string Order)		{			return db.Permission_GetByTop(Top, Where, Order);		}		#endregion		#region[Permission_GetByAll]
        public static List<Data.ModulePermission> Permission_GetByAll()		{			return db.Permission_GetByAll();		}
        public static List<Data.ModulePermission> Permission_GetByAll(string User)
        {
            List<Data.ModulePermission> list = new List<Data.ModulePermission>();
            list = Permission_GetByAll();
            return list.FindAll(delegate(ModulePermission obj)
            {
                return obj.UserId == User;
            });
        }		#endregion		#region[Permission_Paging]		public static List<Data.Permission> Permission_Paging(string CurentPage, string PageSize, string Where)		{			return db.Permission_Paging(CurentPage, PageSize, Where);		}		#endregion		#region[Permission_Update]		public static bool Permission_Update(Permission data)		{			return db.Permission_Update(data);		}		#endregion		#region[Permission_Delete]		public static bool Permission_Delete(string Id)		{			return db.Permission_Delete(Id);		}		#endregion	}}